package net.chrisrichardson.ec2deployer.applications

import org.apache.commons.logging.*
import net.chrisrichardson.ec2deployer.core.SarMonitor;

def class JmeterLogAnalyzerTest extends GroovyTestCase {
    def Log logger = LogFactory.getLog(getClass())

    public void testSomething() {
        def cpuCount = 1
        def threadCount = 1
        def analyzer = new JmeterLogAnalyzer("src/test/resources/20070605-1820-$cpuCount--$threadCount-i-7e668717-foo.jtl")
        analyzer.analyze()
        logger.debug "****: $cpuCount, $threadCount"
        analyzer.report("target/test-report.xml", ["foo": new SarMonitor()], cpuCount, threadCount)
        logger.debug "****"
    }

}


